<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('banner', 'BannerController');
    $router->resource('article/category', 'ArticleCategoryController');
    $router->resource('article/comment', 'ArticleCommentController');
    $router->resource('article', 'ArticleController');
    $router->resource('topic/category', 'TopicCategoryController');
    $router->resource('topic', 'TopicController');
    $router->resource('video', 'VideoController');
    $router->resource('dynamic/state', 'DynamicStateController');
    $router->resource('course/category', 'CourseCategoryController');
    $router->resource('course/chapter/number', 'CourseChapterNumberController');
    $router->resource('course/chapter', 'CourseChapterController');
    $router->resource('course/comment', 'CourseCommentController');
    $router->resource('course', 'CourseController');
    $router->resource('book', 'BookController');
    $router->get('setting', 'AdminSettingController@index');
    $router->resource('user/balance/detail', 'UserBalanceDetailController');
    $router->resource('user/points/detail', 'UserPointsDetailController');
    $router->resource('user/store/plan', 'UserStorePlanController');
    $router->resource('user/identity', 'UserIdentityController');
    $router->resource('user/auth', 'UserAuthController');
    $router->resource('user/member', 'MemberController');
    $router->resource('user/title', 'UserTitleController');
    $router->resource('user/title', 'UserTitleController');
    $router->resource('user/message', 'UserMessageController');
    $router->resource('user', 'UserController');
    $router->resource('ad/category', 'AdCategoryController');
    $router->resource('ad/hierarchy', 'AdHierarchyController');
    $router->resource('ad/price', 'AdPriceController');
    $router->resource('ad', 'AdController');
    $router->resource('task', 'TaskController');
    $router->resource('firm/brand', 'FirmBrandController');
    $router->resource('firmBrandMessage', 'FirmBrandMessageController');
    $router->resource('firm/category', 'FirmCategoryController');

    $router->resource('brand/cradle', 'BrandCradleController');
    $router->resource('brandJoinPlan', 'BrandJoinPlanController');
    $router->resource('brand/location', 'BrandLocationController');
    $router->resource('firm/profession', 'FirmProfessionController');
    $router->resource('firm', 'FirmController');
    $router->resource('circle/category', 'CircleCategoryController');
    $router->resource('circle', 'CircleController');
    $router->resource('position/apply', 'PositionApplyController');
    $router->resource('position', 'PositionController');
    $router->resource('agreement', 'AgreementController');
    $router->resource('firmMessage', 'FirmMessageController');

    $router->resource('job', 'JobController');
    $router->resource('gift', 'GiftController');
    $router->resource('talent', 'TalentController');
    $router->resource('commentStatement', 'CommentStatementController');
    $router->resource('feedbackComment', 'FeedbackCommentController');
    $router->resource('post', 'PostController');
});
